package entity

import "fmt"

/**
* @author aFun
* @data 2025/4/10 03:21
* @email: afunaaa222@163.com / 1030935903
* @address: Guangdong University of Technology, China
 */

type Msg struct {
	Code          int64  // 协议号
	Status        bool   // 状态
	Request_data  string // 请求数据
	Repsonse_data string // 回复数据
	Message       string // 回复信息
}

func (msg Msg) String() string {
	return fmt.Sprintf(
		"Code: %d, Status: %t, Request_data: %q, Repsonse_data: %q, Message: %q",
		msg.Code,
		msg.Status,
		msg.Request_data,
		msg.Repsonse_data,
		msg.Message,
	)
}
